# -- coding: utf-8 --
# @Time : 2021/3/18--20:25
# @Author : ChinaV
# @File : Turtle 绘图题：台球.py

import turtle


def drawCircle():
    turtle.pendown()
    turtle.circle(20)
    turtle.penup()
    turtle.fd(40)


def drawRowCircle(n):
    for j in range(n, 1, -1):
        for i in range(j):
            drawCircle()
        turtle.fd(-j * 40 - 20)
        turtle.right(90)
        turtle.fd(40)
        turtle.left(90)
        turtle.fd(40)
    drawCircle()


drawRowCircle(5)
turtle.hideturtle()
turtle.done()
